package models;

import java.util.*;

public class GiaPhong {

    private int magia;
    private long gia;
    private Set<ChiTietGia> dschitietgia;
    private boolean isDel;

    public GiaPhong() {
    }

    public GiaPhong(int magia, long gia) {
        this.magia = magia;
        this.gia = gia;
        this.dschitietgia = new HashSet<ChiTietGia>();
        this.isDel = false;
    }

    public void setDschitietgia(Set<ChiTietGia> dschitietgia) {
        this.dschitietgia = dschitietgia;
    }

    public Set<ChiTietGia> getDschitietgia() {
        return dschitietgia;
    }

    public long getGia() {
        return this.gia;
    }

    public void setGia(long gia) {
        this.gia = gia;
    }

    public int getMagia() {
        return this.magia;
    }

    public void setMagia(int magia) {
        this.magia = magia;
    }

    public boolean getIsDel() {
        return this.isDel;
    }

    public void setIsDel(boolean isDel) {
        this.isDel = isDel;
    }
    
    public void addChiTietGia(ChiTietGia chiTietGia)
    {
        this.dschitietgia.add(chiTietGia);
    }
    
    public void removeChiTietGia(ChiTietGia chiTietGia)
    {
        this.dschitietgia.remove(chiTietGia);
    }
}
